package com.axdoc.coupon.entity.bean;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.sql.Timestamp;

/**
 * 优惠卷到期提醒参数bean
 * 
 * @author martin625
 *
 */
public class RemindBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 364123207299754303L;

	Integer activityId; // 活动ID
	String couponId; // 优惠卷原型id
	Integer coupontype; // 优惠卷类型
	Integer couponFrom; // 优惠券来源
	String edate; // 优惠卷到期时间
	String uid;
	String docid;
	long actionId;// 行为ID;

	public String getCouponId() {
		return couponId;
	}

	public void setCouponId(String couponId) {
		this.couponId = couponId;
	}

	public Integer getCoupontype() {
		return coupontype;
	}

	public void setCoupontype(Integer coupontype) {
		this.coupontype = coupontype;
	}

	public Integer getCouponFrom() {
		return couponFrom;
	}

	public void setCouponFrom(Integer couponFrom) {
		this.couponFrom = couponFrom;
	}

	public Integer getActivityId() {
		return activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}

	public String getEdate() {
		return edate;
	}

	public void setEdate(String edate) {
		this.edate = edate;
	}
	
	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getDocid() {
		return docid;
	}

	public void setDocid(String docid) {
		this.docid = docid;
	}
	
	public long getActionId() {
		return actionId;
	}

	public void setActionId(long actionId) {
		this.actionId = actionId;
	}

	public boolean isParamNull() {
		for (Field field : this.getClass().getDeclaredFields()) {
			try {
				field.setAccessible(true);
				Object obj = field.get(this);
				if (!field.getName().equals("docid") && obj == null) {
					return true;
				}
			} catch (Exception e) {

			}
		}
		return false;
	}

	@Override
	public String toString() {
		return "RemindBean [activityId=" + activityId + ", couponId=" + couponId + ", coupontype=" + coupontype
				+ ", couponFrom=" + couponFrom + ", edate=" + edate + "]";
	}

}
